package com.cnfangmao.masterdata.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cnfangmao.masterdata.dto.BasicDataDependationDto;
import com.cnfangmao.masterdata.dto.GeneralSearchDto;
import com.cnfangmao.masterdata.model.BasicDataDependation;
import com.cnfangmao.masterdata.vo.BasicDataDependationVo;
import com.cnfangmao.masterdata.vo.GeneralPageVo;

/**
 * <p>
 * 主数据间依赖关系表 服务类
 * </p>
 *
 * @author chenxd
 * @since 2020-04-14
 */
public interface BasicDataDependationService extends IService<BasicDataDependation> {

	/**
	 * 
	 * @param dependationId
	 * @return
	 */
	public BasicDataDependationVo getBasicDataDependationById(String dependationId);
	
	/**
	 * 
	 * @param sourceMetadataId
	 * @param sourceFieldId
	 * @return
	 */
	public BasicDataDependationVo getBasicDataDependationBySourceId(String sourceMetadataId, String sourceFieldId);
	
	/**
	 * 
	 * @return
	 */
	public List<BasicDataDependationVo> getAllBasicDataDependations();
	
	/**
	 * 
	 * @param searchDto
	 * @return
	 */
	public GeneralPageVo<BasicDataDependationVo> getBasicDataDependationsByPage(GeneralSearchDto<BasicDataDependationDto> searchDto);
	
}
